package com.spic.business.xfalarm.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.spic.business.xfalarm.domain.AlarmInfoDate;
import com.spic.business.xfalarm.domain.DeviceInfo;
import com.spic.business.xfalarm.domain.vo.AlarmInfoDateVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 290512
 * @create 2022-05-25 11:17
 */
@Mapper
public interface OdsXfMapper
{
    @DS("ods")
    int insertAlarmInfoDate(AlarmInfoDate alarmInfoDate);

    @DS("ods")
    int insertDeviceInfo(DeviceInfo deviceInfo);

    @DS("ods")
    Map<String,Object> selectAlarmInfoDateById(@Param("id") String id);

    @DS("ods")
    Map<String,Object> selectDeviceInfoById(@Param("id") String id);
    @DS("ods")
    List<Map<String,Object> > selectAllList(AlarmInfoDateVo alarmInfoDateVo);

    @DS("ods")
    List<Map<String,Object> > selectDeviceAll(AlarmInfoDateVo alarmInfoDateVo);

    @DS("ods")
    int updateDeviceInfo(Map map);

}
